package com.darren.framework.service;

import com.darren.framework.entity.BaseEntity;

import java.io.Serializable;
import java.util.List;

public interface GenericService<T extends BaseEntity, PK extends Serializable> extends BaseService {

    public T save(T entity);

    public T update(T entity);

    public T findById(PK id);

    public void delete(T entity);

    public void deleteById(PK id);

    public List<T> getAll();

}
